package com.chenshu.service;

import com.chenshu.dao.DemoDao;
import com.chenshu.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-03-28
 * Time：22:01
 */
@Service
public class UserService {
    //@Resource(name = "userDaoImpl")
    @Autowired
    @Qualifier(value = "userDaoImpl")
    private DemoDao demoDao;

    public void doService() {
        demoDao.selectAll();
        System.out.println("Do User Service");
    }
}
